package com.macro.mall.common.api;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author super
 * @title: PageReq
 * @description: TODO
 * @date 2020-01-07 14:53
 */
@Data
@ApiModel(description = "页码请求数据", value = "页码请求数据")
public class PageReq {

    @NotNull(message = "页码不可为空")
    @ApiModelProperty(value = "页码", required = true, position = 0, example = "1")
    @JsonIgnore
    private Integer pageNum = 1;
    @NotNull(message = "当前页行数不可为空")
    @ApiModelProperty(value = "当前页行数", required = true, position = 1, example = "20")
    @JsonIgnore
    private Integer pageSize = 20;

}
